﻿@model mtm.Store.Models.OrderDetailsModel
@{ 
    /* Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich 
       To learn more about Mytrip.Mvc visit  
       http://mytripmvc.net  http://mytripmvc.codeplex.com 
       mytripmvc@gmail.com
       license: Microsoft Public License (Ms-PL) */ 
}
@{
    ViewBag.Title = Html.MytripPageTitle(string.Format(StoreLanguage.orderdetailstitle,Model.id), "/");
    ViewBag.Keywords=Html.MytripPageTitle(string.Format(StoreLanguage.orderdetailstitle,Model.id), ",");
    ViewBag.Description=Html.MytripPageTitle(string.Format(StoreLanguage.orderdetailstitle,Model.id), ",");
}
@section scriptlink{
@Html.ScriptLink("jquery.validate.min.js,jquery.validate.unobtrusive.min.js,Page/Store.OrdersDetails.js")
}
@section content{
<h1 class="title"><a href="/Store/ManagerOrders">@StoreLanguage.managerorders</a> / @string.Format(StoreLanguage.orderdetailstitle,Model.id)</h1>

@using (Html.BeginForm()){
<fieldset>
@Model.orderisproduct
<div class="content">
<div class="button">
@Html.MytripButton("/Store/AddAccount/"+Model.id, StoreLanguage.addaccount, false,"right")
</div>
</div>
<div class="last">
</div>
<table class="@WrapRes.StyleTable2_12">
<tr>
@Html.Raw(string.Format(WrapRes.StyleTable2_14, "width:50%;"))
@Html.Raw(string.Format(WrapRes.StyleTable2_15, "width:50%;"))
@Html.Raw(WrapRes.StyleTable2_16)
@Html.Raw(string.Format(WrapRes.StyleTable2_17, "width:50%;"))
<div class="editor-label">
@Html.LabelFor(m => m.namberaccount, StoreLanguage.namberaccount)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.namberaccount)
@Html.ValidationMessageFor(m => m.namberaccount) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.delivery, StoreLanguage.Delivery1) 
</div><div class="editor-field">
@Html.TextBoxFor(m => m.delivery)
@Html.ValidationMessageFor(m => m.delivery)
</div><div class="editor-field">
@Html.DropDownListFor(m => m.moneyId, Model.SelectCultureMoney) 
</div>
@Html.Raw(WrapRes.StyleTable2_13)
@Html.Raw(string.Format(WrapRes.StyleTable2_18, "width:50%;"))
<div class="righttext">
@Model.total
</div>
<div class="editor-label">
@Html.LabelFor(m => m.priceInWords, StoreLanguage.priceInWords)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.priceInWords)
@Html.ValidationMessageFor(m => m.priceInWords) 
</div>
<div class="button">
@Html.MytripButton(CoreLanguage.save, true,"right")
@Html.MytripButton("/Store/CreateAccount/"+Model.id, StoreLanguage.Preview, false,"right")
@Html.MytripButton("/Store/SetAccount/"+Model.id, StoreLanguage.setaccount, false,"right")
</div>
@Html.Raw(WrapRes.StyleTable2_13)
@Html.Raw(WrapRes.StyleTable2_16)
@Html.Raw(string.Format(WrapRes.StyleTable2_19, "width:50%;"))
@Html.Raw(string.Format(WrapRes.StyleTable2_20, "width:50%;"))
</tr></table>


</fieldset>
<div class="last">
</div>
<table class="@WrapRes.StyleTable2_12">
<tr>
@Html.Raw(string.Format(WrapRes.StyleTable2_14, "width:50%;"))
@Html.Raw(string.Format(WrapRes.StyleTable2_15, "width:50%;"))
@Html.Raw(WrapRes.StyleTable2_16)
@Html.Raw(string.Format(WrapRes.StyleTable2_17, "width:50%;"))
<h3 class="title">@StoreLanguage.customer</h3>
<div class="editor-label">
@Html.LabelFor(m => m.firstname, StoreLanguage.firstname)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.firstname)
@Html.ValidationMessageFor(m => m.firstname) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.lastname, StoreLanguage.lastname)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.lastname)
@Html.ValidationMessageFor(m => m.lastname) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.useremail, CoreLanguage.Email)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.useremail)
@Html.ValidationMessageFor(m => m.useremail) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.phone, StoreLanguage.phone)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.phone)
@Html.ValidationMessageFor(m => m.phone) 
</div>
<div style="display: @Model.viewOrganization" >
<div class="editor-label">
@Html.LabelFor(m => m.organization, StoreLanguage.organization)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.organization)
@Html.ValidationMessageFor(m => m.organization) 
</div>
<div style="display: @Model.viewOrganizationRu" >
<div class="editor-label">
@Html.LabelFor(m => m.organizationINN, StoreLanguage.organizationINN)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.organizationINN)
@Html.ValidationMessageFor(m => m.organizationINN) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.organizationKPP, StoreLanguage.organizationKPP)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.organizationKPP)
@Html.ValidationMessageFor(m => m.organizationKPP) 
</div>
</div>
</div>
<div class="editor-label">
@Html.LabelFor(m => m.address, StoreLanguage.address)
</div><div class="editor-field">
@Html.TextAreaFor(m => m.address, new { @class = "message", style = "height: 50px; width:300px;" })
@Html.ValidationMessageFor(m => m.address) 
</div>
@Html.Raw(WrapRes.StyleTable2_13)
@Html.Raw(string.Format(WrapRes.StyleTable2_18, "width:50%;"))
<h3 class="title">@StoreLanguage.seller</h3>
<div class="editor-label">
@Html.LabelFor(m => m.sellerorganization, StoreLanguage.organization)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerorganization)
@Html.ValidationMessageFor(m => m.sellerorganization) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.selleremail, CoreLanguage.Email)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.selleremail)
@Html.ValidationMessageFor(m => m.selleremail) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerphone, StoreLanguage.phone)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerphone)
@Html.ValidationMessageFor(m => m.sellerphone) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.selleraddress, StoreLanguage.address)
</div><div class="editor-field">
@Html.TextAreaFor(m => m.selleraddress, new { @class = "message", style = "height: 50px; width:300px;" })
@Html.ValidationMessageFor(m => m.selleraddress) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerdirector, StoreLanguage.sellerdirector)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerdirector)
@Html.ValidationMessageFor(m => m.sellerdirector) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.selleraccountant, StoreLanguage.selleraccountant)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.selleraccountant)
@Html.ValidationMessageFor(m => m.selleraccountant) 
</div>
<div style="display: @Model.viewOrganizationRu" >
<div class="editor-label">
@Html.LabelFor(m => m.sellerorganizationINN, StoreLanguage.organizationINN)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerorganizationINN)
@Html.ValidationMessageFor(m => m.sellerorganizationINN) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerorganizationKPP, StoreLanguage.organizationKPP)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerorganizationKPP)
@Html.ValidationMessageFor(m => m.sellerorganizationKPP) 
</div>
<div class="editor-label">
@Html.CheckBoxFor(m => m.sellerliteNDS)
@Html.LabelFor(m => m.sellerliteNDS, StoreLanguage.sellerliteNDS)
</div>
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerbank, StoreLanguage.sellerbank)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerbank)
@Html.ValidationMessageFor(m => m.sellerbank) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerbankaccount, StoreLanguage.sellerbankaccount)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerbankaccount)
@Html.ValidationMessageFor(m => m.sellerbankaccount) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerbankaccountBIK, StoreLanguage.sellerbankaccountBIK)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerbankaccountBIK)
@Html.ValidationMessageFor(m => m.sellerbankaccountBIK) 
</div>
<div class="editor-label">
@Html.LabelFor(m => m.sellerbankaccountSeller, StoreLanguage.sellerbankaccountSeller)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.sellerbankaccountSeller)
@Html.ValidationMessageFor(m => m.sellerbankaccountSeller) 
</div>
@Html.Raw(WrapRes.StyleTable2_13)
@Html.Raw(WrapRes.StyleTable2_16)
@Html.Raw(string.Format(WrapRes.StyleTable2_19, "width:50%;"))
@Html.Raw(string.Format(WrapRes.StyleTable2_20, "width:50%;"))
</tr></table>
}
}

